package day28_35.day30;


import java.util.*;
public class Main01{
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        while (scn.hasNext()){
            String str = scn.nextLine();
            StringBuffer strBf = new StringBuffer();
            for (int i = 0 ; i < str.length() ; i ++){
                char c = str.charAt(i);
                if (Character.isUpperCase(c)){
                    if(c < 70 && c > 64){
                        c = (char)(90 - (69 - c));
                    }
                    else{
                        c = (char)(c - 5);
                    }
                }
                strBf.append(c);
            }
            System.out.println(strBf);
        }

    }
}
